package com.gzhryc.shared_device.oem.code.place.dao.db;

import java.util.Date;

import com.gzhryc.jdbc.annotaion.Column;
import com.gzhryc.jdbc.annotaion.Join;
import com.gzhryc.jdbc.annotaion.PrimaryKey;
import com.gzhryc.jdbc.annotaion.Table;

/**
 * 白名单用户
 */
@Table(name="place_free_member")
public class PlaceFreeMember {

	@PrimaryKey
    @Column(name = "place_id",notNull = true,note = "网点ID")
    protected Long placeId;
	
	@PrimaryKey
	@Column(length = 16, notNull = true,note = "手机号")
	protected String phone;
	
	@Column(name = "member_id",note = "会员ID")
	protected Long memberId;
	
	@Column(name = "member_nickname",length = 32,note="会员昵称")
	protected String memberNickname;
	
	@Column(name = "active_date",note="激活时间")
	protected Date activeDate;
	
	@Column(note = "描述")
	protected String note;

    @Column(name = "create_date")
    protected Date createDate;
    
    @Join(fromField="place_id")
    protected PlacePhysicalStore place;

	public Long getPlaceId() {
		return placeId;
	}

	public void setPlaceId(Long placeId) {
		this.placeId = placeId;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Long getMemberId() {
		return memberId;
	}

	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	public String getMemberNickname() {
		return memberNickname;
	}

	public void setMemberNickname(String memberNickname) {
		this.memberNickname = memberNickname;
	}

	public Date getActiveDate() {
		return activeDate;
	}

	public void setActiveDate(Date activeDate) {
		this.activeDate = activeDate;
	}
	
	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public PlacePhysicalStore getPlace() {
		return place;
	}

	public void setPlace(PlacePhysicalStore place) {
		this.place = place;
	}
	
	
}
